package com.znxz.hzqiuxm.ziniublog;

import com.znxz.data.md.qxkjmongo.mongodb.BaseRepositoryImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

@EnableMongoRepositories(repositoryBaseClass = BaseRepositoryImpl.class)
@SpringBootApplication
public class ZiniublogApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(ZiniublogApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder){
        return builder.sources(ZiniublogApplication.class);
    }

}
